window.onload=setA()
function setA() {
    var url = "https://www.jd.com/"
    var len = document.getElementsByTagName('a').length
    for (var i=0;i<len;i++) {
        document.getElementsByTagName('a')[i].href=url
    }
}